/*
 * @Author: wangxiaojie
 * @LastEditors: wangxiaojie
 */
// const { reactive } = require('./define-property')
const { reactive } = require('./proxy')

// var obj = {
//   name: 'wwww',
//   age: '25'
// }

// var reData = reactive(obj)

// console.log(reData.name)
// reData.name = {
//   sda: 'wwwww'
// }
// console.log(reData.name)

// console.log(reData.name.sda)

// reData.name.sda = 'asdsadsa'

// console.log(reData.name.sda)

// console.log(reData)

var arr = [1, 2,3]

var reArr = reactive(arr)

reArr.push('5')

console.log(reArr[3])